package com.lzx.user.controller.web;

import com.lzx.common.utils.R;
import com.lzx.user.service.EchartsService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author 程序员星星
 * @date 2023/4/18
 * @Description
 */
@RestController
@RequestMapping("/user/echarts/web")
public class EchartsController {
    @Resource
    private EchartsService echartsService;

    //统计数据
    @GetMapping("/getStatistics")
    public R getStatistics() {
        return echartsService.getStatistics();
    }
}
